FROM daocloud.io/qiaohao8/maven-oracle-jdk:master-71ce536

ADD pom.xml /app/build/
RUN cd /app/build && mvn -q  dependency:resolve

ADD src /app/build/src



EXPOSE 8080
ENTRYPOINT cd /app/build && mvn spring-boot:run